<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>微信跳转</title>
  <script>
    function getQueryParam(name) {
      const urlParams = new URLSearchParams(window.location.search);
      return urlParams.get(name);
    }

    window.onload = function() {
      // 从URL参数读取，例如 ?biz=xxxx
      const bizParam = getQueryParam('biz');
      if (bizParam) {
        const targetUrl = "weixin://dl/business/" + bizParam;
        window.location = targetUrl;

        // 微信内置浏览器被拦截时，提示用户
        setTimeout(function() {
          document.body.innerHTML = 
            "正在打开微信业务：<b>" + bizParam + "</b><br>" +
            "请点击右上角 ···，选择 <b>在浏览器打开</b>";
        }, 1500);
      } else {
        document.body.innerHTML = "缺少参数：biz";
      }
    };
  </script>
</head>
<body>
  正在跳转到微信业务页面...
</body>
</html>
